<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScsgtbautenticEditDlg" widgetVar="ScsgtbautenticEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScsgtbautenticTitle}">

            <h:form id="ScsgtbautenticEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scsgtbautenticController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScsgtbautenticLabel_scsgtbautenticid}" for="scsgtbautenticid" />
                        <h:outputText id="scsgtbautenticid" value="#{scsgtbautenticController.selected.scsgtbautenticid}" />

                        <p:outputLabel value="#{myBundle.EditScsgtbautenticLabel_fechaauten}" for="fechaauten" />
                        <p:calendar id="fechaauten" pattern="MM/dd/yyyy HH:mm:ss" value="#{scsgtbautenticController.selected.fechaauten}" title="#{myBundle.EditScsgtbautenticTitle_fechaauten}" required="true" requiredMessage="#{myBundle.EditScsgtbautenticRequiredMessage_fechaauten}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScsgtbautenticLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scsgtbautenticController.selected.observaciones}" title="#{myBundle.EditScsgtbautenticTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.EditScsgtbautenticLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <p:selectOneMenu id="scthtbdatosgenid" value="#{scsgtbautenticController.selected.scthtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditScsgtbautenticRequiredMessage_scthtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="scthtbdatosgenidItem"
                                           itemValue="#{scthtbdatosgenidItem}"
                                           itemLabel="#{scthtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scsgtbautenticController.save}" value="#{myBundle.Save}" update="display,:ScsgtbautenticListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScsgtbautenticEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScsgtbautenticEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
